/**
 * 
 */
package com.p2p.front.dal.model;

import java.io.Serializable;
import java.util.Date;

import com.p2p.base.model.Money;

/**
 * @author ruiqi
 *
 */
public class Tender implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -4336941188795973268L;
	
	private Long tid;//投标ID
	private Long tno;//投标订单号
	private Long ftid;//转让来源tid
	private Long ptid;//源投标ID
	private Long lid;//贷款ID
	private Long slid;//子贷款ID
	private Integer scontract;//是否发送借款协议
	private Long uid;//用户ID
	private String userName;
	private String userAccount;
	private Money loanAmount = new Money();//贷款总金额
	private Double loanApr;//贷款年利率
	private String loanRepayMethod;//还款方式:m-按月分期,i-按月付息,到期还本,e-到期还本息
	private Date loanTime;//还款起始时间
	private Money amount = new Money();//投标金额
	private Money autoAmount = new Money();//自动投标金额
	private Money returnPrincipal = new Money();//已还本金
	private Money repayAmount = new Money();//应还总额
	private Money returnRepayAmount = new Money();//已还总额
	private Integer num;//还款期数
	private Integer repayNum;//已还期数
	private Integer startNum;//起始期数
	private Integer status;//状态:1-失败,2-无效,3-流标,11-成功,21-还款中,31-还款完成
	private Integer tstatus;//状态:0-初始状态,1-转让失败,2-转让取消,11-转让中,21-转让成功
	private Integer auto;//是否为自动投标
	private Integer autoRank; //自动投标时候的排名
	private Date addtime;//创建时间
	private Date bidtime;//投标时间
	private Date uptime;//更新时 间
	private Date paytime;//还款时间
	private String addip;//创建IP
	private Money payAmount = new Money();//实际本金
	private String extraInfo;//扩展信息
	
	//额外增加的非数据库字段
	private Money monthReturn = new Money();//等额本息的本息总额
	private Money monthInterest= new Money();//按月付息的利息
	
	public Money getMonthReturn() {
		return monthReturn;
	}
	public void setMonthReturn(Money monthReturn) {
		this.monthReturn = monthReturn;
	}
	public Money getMonthInterest() {
		return monthInterest;
	}
	public void setMonthInterest(Money monthInterest) {
		this.monthInterest = monthInterest;
	}
	public Long getTid() {
		return tid;
	}
	public void setTid(Long tid) {
		this.tid = tid;
	}
	public Long getTno() {
		return tno;
	}
	public void setTno(Long tno) {
		this.tno = tno;
	}
	
	public Long getFtid() {
		return ftid;
	}
	public void setFtid(Long ftid) {
		this.ftid = ftid;
	}
	public Long getPtid() {
		return ptid;
	}
	public void setPtid(Long ptid) {
		this.ptid = ptid;
	}
	public Long getLid() {
		return lid;
	}
	public void setLid(Long lid) {
		this.lid = lid;
	}
	public Long getSlid() {
		return slid;
	}
	public void setSlid(Long slid) {
		this.slid = slid;
	}
	public Integer getScontract() {
		return scontract;
	}
	public void setScontract(Integer scontract) {
		this.scontract = scontract;
	}
	public Long getUid() {
		return uid;
	}
	public void setUid(Long uid) {
		this.uid = uid;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserAccount() {
		return userAccount;
	}
	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}
	public Money getLoanAmount() {
		return loanAmount;
	}
	public void setLoanAmount(Money loanAmount) {
		this.loanAmount = loanAmount;
	}
	public Double getLoanApr() {
		return loanApr;
	}
	public void setLoanApr(Double loanApr) {
		this.loanApr = loanApr;
	}
	public String getLoanRepayMethod() {
		return loanRepayMethod;
	}
	public void setLoanRepayMethod(String loanRepayMethod) {
		this.loanRepayMethod = loanRepayMethod;
	}
	public Date getLoanTime() {
		return loanTime;
	}
	public void setLoanTime(Date loanTime) {
		this.loanTime = loanTime;
	}
	public Money getAmount() {
		return amount;
	}
	public void setAmount(Money amount) {
		this.amount = amount;
	}
	public Money getAutoAmount() {
		return autoAmount;
	}
	public void setAutoAmount(Money autoAmount) {
		this.autoAmount = autoAmount;
	}
	public Money getReturnPrincipal() {
		return returnPrincipal;
	}
	public void setReturnPrincipal(Money returnPrincipal) {
		this.returnPrincipal = returnPrincipal;
	}
	public Money getRepayAmount() {
		return repayAmount;
	}
	public void setRepayAmount(Money repayAmount) {
		this.repayAmount = repayAmount;
	}
	public Money getReturnRepayAmount() {
		return returnRepayAmount;
	}
	public void setReturnRepayAmount(Money returnRepayAmount) {
		this.returnRepayAmount = returnRepayAmount;
	}
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public Integer getRepayNum() {
		return repayNum;
	}
	public void setRepayNum(Integer repayNum) {
		this.repayNum = repayNum;
	}
	public Integer getStartNum() {
		return startNum;
	}
	public void setStartNum(Integer startNum) {
		this.startNum = startNum;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getTstatus() {
		return tstatus;
	}
	public void setTstatus(Integer tstatus) {
		this.tstatus = tstatus;
	}
	public Integer getAuto() {
		return auto;
	}
	public void setAuto(Integer auto) {
		this.auto = auto;
	}
	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}
	public Date getBidtime() {
		return bidtime;
	}
	public void setBidtime(Date bidtime) {
		this.bidtime = bidtime;
	}
	public Date getUptime() {
		return uptime;
	}
	public void setUptime(Date uptime) {
		this.uptime = uptime;
	}
	public Date getPaytime() {
		return paytime;
	}
	public void setPaytime(Date paytime) {
		this.paytime = paytime;
	}
	public String getAddip() {
		return addip;
	}
	public void setAddip(String addip) {
		this.addip = addip;
	}
	public Money getPayAmount() {
		return payAmount;
	}
	public void setPayAmount(Money payAmount) {
		this.payAmount = payAmount;
	}
	public String getExtraInfo() {
		return extraInfo;
	}
	public void setExtraInfo(String extraInfo) {
		this.extraInfo = extraInfo;
	}
	public Integer getAutoRank() {
		return autoRank;
	}
	public void setAutoRank(Integer autoRank) {
		this.autoRank = autoRank;
	}
	
	
}
